import { App } from "vue"
import * as components from "./components"
export * from "./components"
export type * from "./types"

import "./style.css"
import type { SFCWithInstall } from "./utils/typescript"

function install(app: App) {
  Object.entries(components).forEach(
    ([, component]: [any, SFCWithInstall<any>]) => {
      app.use(component)
    },
  )
}

export default {
  ...components,
  install,
}
